add_library(XCodec SHARED 
    "xformat.h" "xformat.cpp"
    "xdemux.h" "xdemux.cpp"
    "xmux.h" "xmux.cpp"
    "xcodec.cpp" "xcodec.h"
    "xdecode.cpp" "xdecode.h"
    "xencode.cpp" "xencode.h"
    "xtools.h" "xtools.cpp"
    "xdemux_task.h" "xdemux_task.cpp"
    "xdemux_task.cpp" "xdemux_task.h"
    "xdecode_task.h" "xdecode_task.cpp"
    "xvideo_view.cpp" "xvideo_view.h"
    "xsdl.cpp" "xsdl.h"
    "xdemux_task.h" "xdemux_task.cpp"
    "xmux_task.h" "xmux_task.cpp"
    "xaudio_play.cpp" "xaudio_play.h"
 "xplayer.h" "xplayer.cpp")
# 导出符号
target_compile_definitions(XCodec PUBLIC XCODEC_EXPORTS)
target_link_libraries(XCodec  avformat avcodec avutil SDL2::SDL2)
set_out_path(XCodec)
set_runtime_name(XCodec)
